﻿using FitnessClubManager.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FitnessClubManager.BLL
{
    partial class BizKhachHang
    {
        internal static List<KhachHang> GetList(string hoTen)
        {
            using (var context = new DBFitnessWinAppEntities())
            {
                var ls = from e in context.KhachHangs
                         where (e.Ho + " " + e.Ten).Contains(hoTen)
                         select e;
                return ls.ToList();
            }
        }
    }
}
